import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";

export class GetLoveDayListDTO{
  @ApiProperty({ description: '用户ID' })
  readonly UserSysID: number;
}

export class LoveDayListDTO {
  @ApiPropertyOptional({ description: 'ID' })
  readonly SysID: number;
  @ApiProperty({ description: '纪念日名称' })
  readonly CommemorationName: string;
  @ApiProperty({ description: '纪念日日期' })
  readonly CommemorationDate: string;
  @ApiProperty({ description: '阴历(汉字)' })
  readonly LunarDate: string;
  @ApiProperty({ description: '间隔天数' })
  readonly IntervalDay: number;
  @ApiProperty({ description: '阴历还是阳历(0阴历1阳历)' })
  readonly LunarOrSolar: number;
  @ApiProperty({ description: '周几' })
  readonly Weekly: string;
}

export class HandleLoveDayDTO{
  @ApiProperty({ description: '操作类型(add|edit|delete)' })
  readonly Type: string;

  @ApiPropertyOptional({ description: 'ID' })
  readonly SysID: number;

  @ApiProperty({ description: '用户ID' })
  readonly UserSysID: number;

  @ApiProperty({ description: '纪念日名称' })
  readonly CommemorationName: string;

  @ApiProperty({ description: '一开始选中的纪念日日期' })
  readonly BaseCommemorationDate: string;

  @ApiProperty({ description: '阴历还是阳历(0阴历1阳历)' })
  readonly LunarOrSolar: number;

  @ApiProperty({ description: '提醒时间(0:当天1:提前一天2:提前两天3:提前三天4:提前一星期5:提前一个月6:每天提醒,99不提醒)' })
  readonly RemindDate: number;

  @ApiProperty({ description: '时间' })
  readonly RemindTime: string;

  @ApiProperty({ description: '循环周期(0:每天1每隔一天2:每一星期3:每一个月,99不循环)' })
  readonly Circulation: number;

  @ApiProperty({ description: '累积或者倒数(0倒数1累积)' })
  readonly CountDown: number;
}